Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Future#successful in pureEval when possible #1019

Merged
merged 1 commit into from May 6, 2016
Merged

Use Future#successful in pureEval when possible #1019

merged 1 commit into from May 6, 2016

Conversation

ghost
Copy link

@ghost ghost commented May 6, 2016

Since Now already has performed the work required to calculate the result value, we can lift the result into a Future using Future#successful instead of unwrapping the Now inside the block run by the Future (which potentially has to use another thread).

Since `Now` already has performed the work required to calculate the
result value, we can lift the result into a Future using
`Future#successful` instead of unwrapping the `Now` inside the block run
by the `Future` (which potentially has to use another thread).
@ceedubs
Copy link
Contributor

ceedubs commented May 6, 2016

👍 looks good to me as long as the build passes

@codecov-io
Copy link

codecov-io commented May 6, 2016

Current coverage is 82.00%

Merging #1019 into master will increase coverage by +<.01%

  1. 2 files (not in diff) in .../main/scala/cats/std were modified. more
@@             master      #1019   diff @@
==========================================
  Files           215        215          
  Lines          2704       2705     +1   
  Methods        2639       2637     -2   
  Messages          0          0          
  Branches         60         63     +3   
==========================================
+ Hits           2217       2218     +1   
  Misses          487        487          
  Partials          0          0          

Powered by Codecov. Last updated by 9a96070...0e13ff9

@adelbertc
Copy link
Contributor

👍

@adelbertc adelbertc merged commit 185d0d8 into typelevel:master May 6, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants